<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class News_model extends CI_Model {

	public function get()
	{
		return $this->db->select('*')
						->from('news')
						->join('users', 'users.id = news.user_id', 'left')
						->get()
						->result_array();
	}
}